package com.hanggold.endpoint.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * @author <a href="mailto:sunmch@163.com">smc</a>
 * @date 2019-07-25 15:30
 * @since
 **/

public class EndpointFilter implements Filter {

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("自定义一个filter");
        chain.doFilter(request, response);
//        response.getWriter().write("xxxxx");
    }
}
